package com.example.eurekaserverclient.gclconverter;

public class CodeException extends RuntimeException {
    public static final int DEFAULT_ERROR_CODE = 500;
    public static final int DEFAULT_INVALID_PARAMETER = 400;

    private int code;

    public CodeException(String message) {
        super(message);
        this.code = DEFAULT_ERROR_CODE;
    }

    public CodeException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }
}
